package com.woniuxy.qiantai.vo;


import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

@Document(indexName = "woniudining",shards = 1,replicas = 2)
@Data
public class ShopAndTypeES {

    @Id
    private Integer id;

    @Field(name = "name",analyzer = "my_extra_words",searchAnalyzer = "my_extra_words",type = FieldType.Text)
    private String name;

    @Field(analyzer = "my_extra_words",searchAnalyzer = "my_extra_words",type = FieldType.Text)
    private String typeName ;

    @Field(analyzer = "my_extra_words",searchAnalyzer = "my_extra_words",type = FieldType.Text)
    private String detail;

    @Field(type = FieldType.Keyword)
    private String imgSrc;

    @Field(type = FieldType.Keyword)
    private Integer shopId;



}


